﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NLBS.Entity" assembly="NLBS.Entity">
  <class name="Tag" table="blog_Tag">
    <id name="TagID" column="tag_ID" type="Int32">
      <generator class="native" />
    </id>
    <property name="Name" column="tag_Name"  type="string" />
    <property name="LogID" column="log_ID"  type="Int32" length="32" not-null="true" />

    <bag name="Items" table="blog_ArticleTag">
      <key column="tag_ID" />
      <many-to-many class="Article" column="log_ID" />
    </bag>
  </class>
</hibernate-mapping>